<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'ViewSearchCase.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<script type="text/javascript">
	
	function search(){
         var searchmean=document.getElementById('searchmean').childNodes[0]; 
         //doucument.write(searchmean.key);
         /*
         if(searchmean.key=='docName'){
            if(document.getElementById('doctorlist').style.display=='none'){
            	document.getElementById('doctorlist').style.display='block';
            }
         }         
*/
		}
	
	</script>
  </head>
  
  <body>
    <center> 
	<s:form name="search" action="SearchCase" method="get">
		<p>
			<div><s:select name="searchmean" id="searchmean"list="#{'pId':'病人编号','caseId':'范例编号','docName':'负责医师'}" onchange="search();"/>
			<s:textfield name="query" size="44"/>&nbsp;检索词</div>
		</p>
		
			<div><s:submit value="检索"/><input type="button"  value="高级检索"onclick="window.open('ViewAdvancedSearch.jsp');"/></div>
       </s:form>
       <div style="" id="doctorlist"></div>
</center>

  </body>
</html>
